/*
 * testDragnDrop.h
 *
 *  Created on: Oct 5, 2011
 *      Author: nicoabie
 */

#ifndef TESTDRAGNDROP_H_
#define TESTDRAGNDROP_H_

#include "../src/common/utils/Logger.h"

#include "../src/SDLtoolkit/widgets/ScenarioPanel.h"

#include <list>


void testDragnDrop() {

	SDLEngine* engine = new SDLEngine();

	engine->start();

	ScenarioPanel* panel = new ScenarioPanel(
			"./trunk/res/img/escenarios/green.bmp", 0, 0,
			engine->getMainSurface());

	Event* event = new Event();

	bool quit = false;
	while (quit == false) {
		while (engine->pullEvent(event)) {

			panel->handleEvent(*event);

			engine->refreshScreen();
			if (event->getType() == Quit) {
				quit = true;
			}
		}
	}

	engine->stop();
}

#endif /* TESTDRAGNDROP_H_ */
